package 流程控制.循环结构;

public class do_while {
    public static void main(String[] args) {
        int i = 1;
        do {
            System.out.println(i);
            i++;//迭代
        } while (i < 1);//do-while结构的循环体至少执行一次。
        System.out.println("====================");
        System.out.println(i);
        i = 0;
        int s = 0;
        do {
            s = i + s;
            i++;//迭代
        } while (i <= 100);
        System.out.println(s);

    }


}
